home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gedit.postinst < prev    next >
Encoding:
Text File  |  2007-04-10  |  1.2 KB  |  48 lines

  1. #! /bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.         # register gedit as a gnome-text-editor in the alternatives system
  8.         update-alternatives \
  9.             --install \
  10.                 /usr/bin/gnome-text-editor \
  11.                 gnome-text-editor \
  12.                 /usr/bin/gedit \
  13.                 50 \
  14.             --slave \
  15.                 /usr/share/man/man1/gnome-text-editor.1.gz \
  16.                 gnome-text-editor.1.gz \
  17.                 /usr/share/man/man1/gedit.1.gz
  18.     ;;
  19.  
  20.     abort-upgrade|abort-remove|abort-deconfigure)
  21.     ;;
  22.  
  23.     *)
  24.         echo "postinst called with unknown argument \`$1'" >&2
  25.         exit 0
  26.     ;;
  27. esac
  28.  
  29. # Automatically added by dh_installmenu
  30. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  31.     update-menus
  32. fi
  33. # End automatically added section
  34. # Automatically added by dh_gconf
  35. if [ "$1" = "configure" ]; then
  36.     gconf-schemas --register gedit-file-browser.schemas gedit.schemas 
  37. fi
  38. # End automatically added section
  39. # Automatically added by dh_pysupport
  40. if [ "$1" = "configure" ] && which update-python-modules >/dev/null 2>&1; then
  41.     update-python-modules -b gedit.dirs
  42. fi
  43. # End automatically added section
  44.  
  45.  
  46. exit 0
  47.  
  48.